//
//  RUSportMainController.m
//  runtorun
//
//  Created by KIMI on 16/10/21.
//  Copyright © 2016年 KIMI. All rights reserved.
//

#import "RUSportMainController.h"
#import "RUSportTracking.h"
#import "RUSportViewController.h"
@interface RUSportMainController ()

@end

@implementation RUSportMainController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)startSports:(UIButton *)sender {
    
    //根据按钮区分类型
    RUSportType type = sender.tag;
    
    //实例化监控控制器
    RUSportViewController *vc = [[RUSportViewController alloc]init];
    vc.sportType = type;
    
    [self presentViewController:vc animated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
